import 'package:dio/dio.dart';
import 'package:flutter_test/flutter_test.dart';

import 'package:blog/api/api.dart';
import 'package:blog/api/api_handle.dart';

void main() {
  var c = ConfigDebug();
  var api = DioApiImpl(Dio(BaseOptions(
      baseUrl: c.baseUrl,
      connectTimeout: c.connectTimeout,
      receiveTimeout: c.receiveTimeout)), ProtoApiHandle());
  test("test dio protobuf reading", () async {
    var msg = await api.getSiteSetting();
    print("title:${msg?.title}");
  });

}
